package com.hspedu.tankgame4;

/**
 * @author LiuJinTao
 * @className Bomb
 * @date 2024/06/25 16:02
 * @description TODO
 */
public class Bomb {
    int x, y;// 炸弹的坐标
    int life = 9;// 炸弹的生命周期

    public Bomb(int x, int y) {
        this.x = x;
        this.y = y;
    }

    // 减少生命值
    public void lifeDown() {
        if (life > 0) {
            life--;
        }
    }
}
